<template>
  <div class="dashboard-container">
    <div class="dashboard-text">
      <el-card>
        <div>日历</div>
        <component :is="'Calendar'" :current-date="new Date('2010-01-01')" />
      </el-card>

      <el-card style="margin: 10px 0">
        <div>雷达图</div>
        <Radar />
      </el-card>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Calendar from './components/Calendar.vue'
import Radar from './components/Radar.vue'

export default {
  name: 'Dashboard',

  components: {
    Calendar,
    Radar
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
